<?php
/**
 * <https://y.st./>
 * Copyright © 2019 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'Sludge monster',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2019/03/05.jpg" alt="Snow in the distant mountains" class="framed-centred-image" width="649" height="480"/>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		I dreamed I was in a large, mostly-empty room.
		The floor was concrete, while the walls and ceiling were metal, painted white.
		A sludge monster entered and started making demands.
		It wanted to stash humanity.
		It wanted water to be conserved - it was really stuck on that for some reason - and it claimed it'd been formed from the toxic sludge we humans produce.
		I was fully in agreement that we should conserve water, but it wasn't an ultimatum.
		It wasn't &quot;conserve water or I'll destroy you&quot;, it was &quot;there's no excuse not to conserve water <strong>*and*</strong> I'm going to destroy you&quot;.
		I guess I do think humanity should go extinct, though in a less-violent way.
		I just think we should stop breeding, then live out the remainder of our lives with no successors.
		Besides, it seems I was the protagonist, so I had to stop the monster and save the people.
	</p>
	<p>
		I flew around the room (because I guess I could fly for whatever reason) taunting the monster, trying to distract him from the people.
		I dropped the name of someone that'd know where to find me, then flew out through what I can only assume was some sort of odd ventilation shaft.
		My intent was that the monster would come looking for me, distracting it from everyone else.
		That's not what happened though.
		Instead, a couple human thugs came looking for me.
		The monster had sent them.
		So I guess somehow, there were a few humans on the side of the monster that wanted to destroy everyone.
		I could have dealt with them, but I just sort of got fed-up instead.
		I decided to just go home, and let the head manager sort this out when he got back, because apperantly, the entire dreamscape was somehow my workplace, and the head manager was in charge, but had a couple days off.
		I figured that because they're such a terrible boss, it wasn't my job to bend over backwards to take care of the monster.
		That wasn't even a part of my job.
	</p>
	<p>
		I went to my apartment, which was in a hall that was a part of this same building.
		Other people lived in other apartments off this same hall.
		My apartment was only a bedroom with a bathroom off one side.
		I struggled to get the front door - which led directly to my bedroom - closed, as there were cords hanging down outside the room that were getting in the way of the door.
		I finally got the door closed and locked, though the lock didn't seem very sturdy in the hole it fit into in the doorway.
		I good, hard yank and it'd probably break loose.
		Thankfully, I had a second door in the same doorway, which I also closed and locked.
	</p>
	<p>
		I went to sit down on the bed, and someone came to the door.
		They threatened to come in through my toilet if I didn't let them in through the front door.
		The toilet started making noises in the other room before I could respond.
		I didn't want this person in my home, no matter which way they came in, so I phased through the floor and resurfaced out in the hall near them, hoping that if they had me face-to-face, they'd ignore my apartment.
		They did.
		They commented on how the head manager - which they talked about by name, showing that they were at least partly in the know - wouldn't be happy when they got back.
		I agreed.
		They seemed to realise it was the head manager's job to take care of this mess.
	</p>
	<p>
		I either woke up at that time or I just don't remember the rest.
		I'm not sure what to make of most of that dream.
		I get the fact that it was packed full of symbology, but I only really understand two of the symbols.
		Clearly, I'm fed up with my head manager, and feel no loyalty toward them any more.
		I already knew that though.
		I think the apartment was a representation of my living situation.
		The bathroom was needed as an alternate entrance for someone to come into my home, so likely had no actual meaning, leaving the fact that I basically had only a bedroom.
		My mother talked me into giving her a key, and comes in whenever she feels like it.
		And usually, she doesn't even come when I'm home, because she's specifically avoiding me.
		My home doesn't even feel like it's really mine.
		Instead, the only home I feel like I have is my bedroom, which I locked with a separate key.
		In essence, my bedroom is my apartment.
	</p>
</section>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		My discussion posts for the day:
	</p>
	<blockquote>
		<p>
			I&apos;m not sure if I&apos;m doing this right, but I think you calculate the Gini index by taking - for each class - the fraction of observations that match the given class multiplied by one minus the fraction of observations that match the given class.
			Cross-entropy&apos;s equation is similar, but instead of multiplying by one minus the fraction of observations matching the class, you multiply by the logarithm of fraction of observations matching the given class, then invert (make negative) the number after having added everything together.
		</p>
		<p>
			I&apos;m having difficultly wrapping my head around what the Gini index equation and what it&apos;s saying to do, so I&apos;m really in no position to provide an example of that.
			That&apos;s my failure, and is all on me.
			As for the cross-entropy equation, we&apos;re not even told what base to use for the logarithm, so I can&apos;t even <strong>*begin*</strong> to try to understand that one, let alone provide an example.
			Being a computer science course, I&apos;d assume a base of two.
			That&apos;s the standard for computer science.
			At the same time though, this isn&apos;t a computer science concept, but a statistical one, so it might be base ten instead.
			Whatever the case, this is en example of why you should <strong>*never*</strong> write your formulas to include a logarithm without specifying the base, and just assume your readers will know what base you mean.
			It&apos;s not that hard to just put a digit or two in subscript to make your meaning unambiguous.
		</p>
	</blockquote>
	<blockquote>
		<p>
			Your police example is enlightening.
			I&apos;d heard of profiling people to see if they&apos;re likely to commit a crime, which is obviously ethically wrong, as you target potentially-innocent people.
			However, in your example, you don&apos;t predict who will commit the crime, but rather, where it will be committed.
			That way, patrols are increased in those areas, which either deter would-be criminals or lead to them getting caught sooner.
			The innocent remain unharmed, while crime is either reduced or better dealt with.
		</p>
		<p>
			You do make a good point though that this skews that data.
			It can it look like there&apos;s more crime in the area because there are police there to perform arrests.
			Or it can lead to it looking like there&apos;s less crime, because people try to stay out of trouble when they see an officer of the law.
			I don&apos;t think I&apos;d directly consider this profiling as you suggested, though perhaps it might be wrong after all because it leads to the type of people living in the area to be targeted more than anyone else.
			I&apos;ll have to think more on that.
		</p>
	</blockquote>
</section>
END
);
